<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of HtmlFile
 *
 * @author NguyenDu
 */
require_once 'lib/HtmlHelper/htmlHelper.php';
class HtmlFile
{
    private $m_AllowTrim=false;
    private $m_Content;
    private $m_FileName;
    private $m_Space;
    public function __construct()
    {
        $this->m_AllowTrim=false;
        $this->m_Content="";
        $this->m_FileName="";
        $this->m_Space="";
    }
    public function  AddLine($strLine)
    {
        $HtmlHelper=new htmlElement();
        if($HtmlHelper->closeTagHtml&&strlen($this->m_Space)>0)
        {
            $this->m_Space=substr($this->m_Space,strlen($this->m_Space)-4);
            
        }
        if ($this->m_AllowTrim)
        {
            $strLine=trim($strLine);
        }
        $this->m_Content.=$this->m_Space.$strLine."\r\n";
        if($HtmlHelper->openTagHtml)
        {
            $this->m_Space.="    ";
        }
        return $this->m_Content;
    }
}
?>
